package fa.wangxing.leaf.Service;

import com.github.pagehelper.PageInfo;
import fa.wangxing.leaf.pojo.Cart;
import fa.wangxing.leaf.pojo.Dishes;
import fa.wangxing.leaf.pojo.Order;
import fa.wangxing.leaf.pojo.Orderitems;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface OrderService {
    List<Cart> getcart(int user_id);
    void createorder(Order order);
    int getnewestorder(int user_id);
    void addItem(Orderitems item);
    void cleancart(int user_id);
    List<Order> getorder(int user_id);
    List<Dishes> getdishes(int order_id);
    Order getOrderbyid(int order_id);
    void cancleorder(int order_id);
    void payorder(int order_id);
}
